import Router from 'vue-router'
import Vue from "vue/dist/vue"
import 'babel-polyfill'
Vue.use(Router)
import App from "./App.vue"
import router from './router/index.js'
import Mint from 'mint-ui';
Vue.use(Mint)
import VuePreview from'vue-preview'
Vue.use(VuePreview) 
import 'mint-ui/lib/style.css'
import './libs/base.css'
import './libs/mui/css/mui.css'
import './libs/mui/css/icons-extra.css'
import ajax from './libs/ajax.js'
Vue.prototype.ajax=ajax;




import Vuex from 'vuex'
Vue.use(Vuex)
import storeOption from './store/index.js'
const store= new Vuex.Store({...storeOption})

Vue.filter("initTime",value=>{
  let date=new Date(value)
  let y=date.getFullYear()
  let mon=date.getMonth()+1
  let d = date.getDate()
  let h=date.getHours()
  let m=date.getMinutes()
  let s=date.getSeconds()
  return `${y}-${mon}-${d} ${h}:${m}:${s}`
})



let vm=new Vue({
  el:"#app",
  data:{
    name:"xushciai",
  },
  components:{
    App
  },
  router,
  store,
  template:"<App/>"
})